package com.akl.ssmspringboot.thread;

/**
 * @ClassName: PersonA
 * @Description TODO
 * @Author guoxy
 * @Date 2019/4/19 0019
 * @Version 1.0
 */
public class Man implements Runnable {
    private Bank bank = new Bank();

    public void run() {
        int m = 100;//存钱数量
        int i=0;
        while (i<5) {
            bank.saveMoney(m);
            i++;
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}